//
//  ZJRequestManager.h
//  ZhongWangYuanApp
//
//  Created by ZJ on 2018/6/3.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZJRequestManager : NSObject

#pragma mark - 获取课程基本信息
/**
 获取课程基本信息

 @param ID  课程ID
 */
+ (void)request_getCoursewareInfoWithID:(NSString *)ID successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock;
#pragma mark - 获取课程教师简介
/**
 获取课程教师简介
 
 @param ID  课程ID
 */
+ (void)request_getCoursewareTeacherInfoWithID:(NSString *)ID successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock;
#pragma mark - 获取课程是否已评价
/**
 获取课程是否已评价
 
 @param ID  课程ID
 */
+ (void)request_getCoursewareIsCommentWithID:(NSString *)ID successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock;

#pragma mark - 课程收藏与取消收藏
/**
 课程收藏
 
 @param coursewareIdArray  课程ID数组
 */
+ (void)request_getCoursewareCollectWithCoursewareIdArray:(NSArray *)coursewareIdArray successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock;
/**
 课程取消收藏
 
 @param coursewareIdArray  课程ID数组
 */
+ (void)request_getCoursewareCancelCollectWithCoursewareIdArray:(NSArray *)coursewareIdArray successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock;

#pragma mark - 课程视屏播放接口
/**
 视频播放前先调用
 
 @param coursewareid  课程ID  courwarestudytime: 课程的学时
 */
+ (void)request_getCoursePlayerBeginWithCoursewareid:(NSString *)coursewareid courwarestudytime:(NSString *)courwarestudytime successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock;

/**
 视频播放保存视频进度

 coursewareid  课程ID  courwarestudytime: 课程的学时  time:视频当前播放位置的时间线（秒） videoDuration:视屏总时长00：00：00    coursewarename：课程名称  currentID: 每次进入播放页面，新生成一个guid.

 */
+ (void)request_getCoursePlayerSaveScheduleWithCoursewareid:(NSString *)coursewareid
                                                       time:(NSString *)time
                                                       pkey:(NSString *)pkey
                                              videoDuration:(NSString *)videoDuration
                                          courwarestudytime:(NSString *)courwarestudytime
                                                 playerTime:(NSString *)playerTime
                                             coursewarename:(NSString *)coursewarename
                                                  currentID:(NSString *)currentID
                                             studetailcount:(NSString *)studetailcount
                                                    classId:(NSString *)classId
                                               successBlock:(NetBlock)successBlock
                                                  failBlock:(NetBlock)failBlock;
#pragma mark - 课程加入待学
/**
 课程加入待学
 
 @param coursewareid  课程ID
 */
+ (void)request_getCourseAddAwaitStudyWithCoursewareid:(NSString *)coursewareid successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock;



@end
